#ifndef USER_MANAGER_H
#define USER_MANAGER_H

#include <iostream>
#include <vector>
#include <string>
#include "user.h"
#include "user_persistence.h"

class UserManager {
private:
    std::vector<User*> users;
    UserFileManager fileManager;

    void loadUsers();

public:
    UserManager(std::string filename);
    ~UserManager();

    void createUser(User* user);
    User* readUser(int id);
    void updateUser(int id, std::string newName, std::string newPassword);
    void deleteUser(int id);
    void displayAllUsers();
};

#endif // USER_MANAGER_H    